{% extends "base.html" %}

{% block head %}
    {{ super() }}
    <script type=text/javascript src="{{ url_for('static', filename='js/jquery-1.6.2.min.js') }}"></script>
    <script type=text/javascript src="{{ url_for('static', filename='js/checkDatas.js') }}"></script>
    <script type=text/javascript src="{{ url_for('static', filename='js/jquery.bgiframe.min.js') }}"></script>
    <script type=text/javascript src="{{ url_for('static', filename='js/loading-min.js') }}"></script>
    <link type=text/css rel="stylesheet" href="{{ url_for('static', filename='css/loading.css') }}"/>
    <script type=text/javascript>
         $(document).ready(function () {});
         var Loading;
         function show(i) {
             Loading = new ol.Loading({ id: "div_" + i });
             Loading.show();
         }
         function hide() {
             Loading.hide();
         }
    </script>
{% endblock %}

{% block page_content %}
    {{ super() }}
    <div class="page-header">
        <h3>备份检查</h3>
        <p>The local date and time is <span style="color: red; ">{{ moment(current_time).format('YYYY-MM-DD HH:mm:ss') }}</span>.</p>
        <p>That was {{ moment(current_time).fromNow(refresh=True) }}.</p>
    </div>

    <div class="page-header">
        <p><span class="glyphicon glyphicon-align-justify"></span> 备份进度检查
            <button type="button" class="btn btn-default btn-xs" onclick="backup_progress('backup_progress',4)">
                <span class="glyphicon glyphicon-refresh"></span>
            </button>
            <div id="div_4"></div>
        </p>
    </div>
    <div class="page-header">
        <p><span class="glyphicon glyphicon-align-justify"></span> 用户预存备份
            <button type="button" class="btn btn-default btn-xs" onclick="check_datas('am_balance_mm',0)">
                <span class="glyphicon glyphicon-refresh"></span>
            </button>
            <div id="div_0"></div>
        </p>
        <p><span class="glyphicon glyphicon-align-justify"></span> 代理商预存备份
            <button type="button" class="btn btn-default btn-xs" onclick="check_datas('ag_balance_mm',1)">
                <span class="glyphicon glyphicon-refresh"></span>
            </button>
            <div id="div_1"></div>
        </p>
        <p><span class="glyphicon glyphicon-align-justify"></span> 积分账本备份
            <button type="button" class="btn btn-default btn-xs" onclick="check_datas('sc_balance_mm',2)">
                <span class="glyphicon glyphicon-refresh"></span>
            </button>
            <div id="div_2"></div>
        </p>
        <p><span class="glyphicon glyphicon-align-justify"></span> 欠费备份
            <button type="button" class="btn btn-default btn-xs" onclick="check_datas('am_bill_item_mm',3)">
                <span class="glyphicon glyphicon-refresh"></span>
            </button>
            <div id="div_3"></div>
        </p>
    </div>
{% endblock %}
